package com.antcloud.demo.antscheduler;

import com.antcloud.demo.antscheduler.facade.SampleService;
import org.springframework.boot.SpringApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ImportResource;

/**
 * Slite2SpringBootantscheduler-demoApplication
 * <p>
 * Create a non-web application:
 * http://docs.spring.io/spring-boot/docs/1.4.2.RELEASE/reference/htmlsingle/#howto-create-a-non-web-application
 * <p>
 * <p>
 * Created by yangguanchao on 16/12/9.
 */
@ImportResource({"classpath*:META-INF/antscheduler-demo/*.xml"})
@org.springframework.boot.autoconfigure.SpringBootApplication
public class Slite2SpringBootApplication {
    public static void main(String[] args) throws Exception {
        try {

            SpringApplication springApplication = new SpringApplication(Slite2SpringBootApplication.class);
            //a non-web application
            springApplication.setWebEnvironment(true);
            ApplicationContext applicationContext = springApplication.run(args);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
